package com.project.dao;

import com.project.entity.User;

import java.util.List;


public interface UserMapper {

    int insert(User record);

    int insertSelective(User user);

    //单个删除
    int deleteByPrimaryKey(Integer id);

    //批量删除
    int deleteBatch(List idList);

    int updateByPrimaryKeySelective(User user);


    // 根据用户id查询
    User selectByPrimaryKey(Integer id);

    // 根据username查询
    User selectByUsername(String username);

    List<User> selectBatchByCondition(User user);

    User selectByWorkId(String workid);
}
